package com.cskaoyan.service;

import com.cskaoyan.bean.Groupon;
import com.cskaoyan.bean.GrouponRules;
import com.cskaoyan.bean.ListData;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author 杨杰
 * @version V1.0
 * @Package com.cskaoyan.service
 * @date 2020/12/10 21:51
 * @Copyright © 暂时还没有
 * @description
 */
public interface AdminGrouponService {

    ListData<GrouponRules> grouponList
            (Integer goodsId, Integer page, Integer limit, String sort, String order);

    void grouponUpdate(GrouponRules grouponRules);
    GrouponRules grouponInsert
            (Integer goodsId, BigDecimal discount, Integer discountMember, Date expireTime);
    void grouponDelete(GrouponRules grouponRules);
    ListData<Groupon> grouponListRecord
            (Integer goodsId, Integer page, Integer limit, String sort, String order);

}
